package com.tianql.controller;

import com.alibaba.cloud.nacos.annotation.NacosConfig;
import com.tianql.config.DogConfig;
import com.tianql.pojo.Person;
import com.tianql.pojo.Phone;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/test")
public class TestController {
    @Value("${my.dog.name}")
    private String name;
    @Value("${phone.name}")
    private String name1;


    @Autowired
    private DogConfig dog;
    @RequestMapping("/test")
    public String test() {
        return name+"::::"+name1;
    }

    public void testTag11(){
        System.out.println();
    }
}
